package com.halflife.framework.excel;

import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.ss.usermodel.Sheet;

public class ExcelRow {
    private Row row;
    private Sheet sheet;
    private int index=0;

    public ExcelRow(Sheet sheet,int rowNo) {
        this.sheet = sheet;
        this.row = sheet.createRow(rowNo);

    }

    public Cell createCell(String value) {
        Cell cell = this.row.createCell(index++);
        cell.setCellValue(value);
        return cell;
    }

}
